<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
<jsp:include page="../../import.jsp" flush="true" />

</head>
<script type="text/javascript">

    var _prjId = '${prjId}';
    function searchCheckPrjPlcyIndex() {
        var _url = '<%=path%>/project/prjquatprps/searchCheckPrjPlcyIndex.do';
        $.ajax({
            type : 'get',
            dataType : 'json',
            data : {
                prjId : _prjId,

            },
            url : _url,
            beforeSend: function(){
                wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_LOADING ,SQ_type: "waitting" });
            },
            success:function(msg){
                wait_dialog.close();
                if(msg.code == 1){
                    top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
                    window.location.reload();//刷新
                }else{
                    top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
                }
            }
        });
    }
</script>
<body class="iframeBody">
    <div class="btnsBox">
        <span id="searchCheckPrjPlcyIndex" style="text-align: center;display:block; width: 80px; margin: auto" class="sq-button sq-button-round" onclick="searchCheckPrjPlcyIndex()">CDS查询</span>
    </div>
    <%--<div class="sqPanel_head inL">
        <span>风控决策系统（CDS）结果</span>
    </div>--%>
    <div class="caption">
        <span class="title" style="text-align:center;display:block;">----  风控决策系统（CDS）结果  ----</span>
    </div>

    <div class="field" style="margin-top:20px; margin-left:10px; margin-right:10px; height:100%; background-color: snow;" >

        <div class="caption">
            <span class="title" style="text-align:left;display:block;">----  产品方案  ----</span>
            <c:forEach items="${productPrpsList }" var="item">
                 <span style="line-height:2.2">${item }</span><br/>
            </c:forEach>
        </div>
        <br/><br/><br/>
        <sys:funcAuth resCd="areaPolicy">
            <div class="caption">
                <c:if test="${fn:length(areaPolicyList) > 0}">
                    <span class="title" style="text-align:left;display:block;">----  区域政策  ----</span>
                </c:if>
                <c:forEach items="${areaPolicyList }" var="item">
                    <span style="line-height:2.2">${item }</span><br/>
                </c:forEach>
            </div>
        </sys:funcAuth>
        <br/><br/>
        <sys:funcAuth resCd="ladderPolicy">
            <div class="caption">
                <c:if test="${fn:length(ladderPolicyList) > 0}">
                    <span class="title" style="text-align:left;display:block;">----  阶梯政策  ----</span>
                </c:if>
                <c:forEach items="${ladderPolicyList }" var="item" begin="0" step="1" varStatus="status">
                    <span style="line-height:2.2">${item }</span><br/>
                </c:forEach>
            </div>
        </sys:funcAuth>
    </div>
</body>
</html>